#include "CUserDataInf.h"

#include "../mainctrl.h"

int CUserDataInf::GetLevel(unsigned int uiGID)
{
    int iIndex = pstMainCtrl->m_stPlayerBaseInfoHash.HashFind(uiGID);
    if (iIndex < 0)
    {
        return 0;
    }

    return (int)pstMainCtrl->m_stPlayerBaseInfoHash[iIndex]._shLevel;
}
